//package org.zpp.security.core.social.qq.config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.boot.autoconfigure.social.SocialAutoConfigurerAdapter;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.social.connect.ConnectionFactory;
//import org.zpp.security.core.properties.QQProperties;
//import org.zpp.security.core.properties.SecurityProperties;
//import org.zpp.security.core.social.qq.connect.QQConnectionFactory;
//
///**
// * ConditionalOnProperty，配置了此配置此类才生效
// */
//@Configuration
//@ConditionalOnProperty(prefix = "security.social.qq", name = "app-id")
//public class QQAutoConfig extends SocialAutoConfigurerAdapter {
//
//	@Autowired
//	private SecurityProperties securityProperties;
//
//	/*
//	 * (non-Javadoc)
//	 *
//	 * @see
//	 * org.springframework.boot.autoconfigure.social.SocialAutoConfigurerAdapter
//	 * #createConnectionFactory()
//	 */
//	@Override
//	protected ConnectionFactory<?> createConnectionFactory() {
//		QQProperties qqConfig = securityProperties.getSocial().getQq();
//		return new QQConnectionFactory(qqConfig.getProviderId(), qqConfig.getAppId(), qqConfig.getAppSecret());
//	}
//
//}
